var PSD = require('psd');
var psd = PSD.fromFile("./test.psd");
psd.parse();
 
console.log(JSON.stringify(psd.tree().export()));